<template>
	<view class="content">
		<image src="../../static/images/yuyue.png" mode="" class="banner-image"></image>
		<form action="" class="appointment-list">
			<view class="property-name allstyle">
				楼盘名称 <input type="text"  placeholder="融圣国际" class="property-name-inputstyle allinputstyle">
			</view>
			<view class="appointment-type allstyle">
				预约类型
				<input type="text" name="chooseother-style" placeholder="微改报价" class="allinputstyle">
				<picker @change="appointmentchange" :value="index" :range="array" range-key="name">
					<view class="chooseother-style"></view>
				</picker>
			</view>
			<view class="housetype allstyle">
				户&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型
				<input type="text" placeholder="150" class="housetype-inputstyle allinputstyle">
			</view>
			<view class="username allstyle">
				姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名
				<input type="text" placeholder="刘芳" class="username-inputstyle allinputstyle">
			</view>
			<view class="information allstyle">
				联系方式 <input type="text"  placeholder="13546713187"
					class="information-style allinputstyle">
			</view>
			<view class="wechat-number allstyle">
				微信号码 <input type="text"  placeholder="15987523524"
					class="wechat-number allinputstyle">
			</view>
			<button class="buttonstyle">确定预约</button>
		</form>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				array: [{
					name: '验房'
				}, {
					name: '微改报价'
				}, {
					name: '设计'
				}, {
					name: '拎包入住'
				}],
				index: 2,
			};
		},
		methods: {
			appointmentchange: function(e) {
				this.index = e.detail.value;
			}
		}
	}
</script>

<style>
	* {
		margin: 0;
		padding: 0;
	}

	.content {
		width: 100%;
		height: 100vh;
		box-sizing: border-box;
	}

	.appointment-list {
		display: flex;
		justify-content: center;
		position: relative;
		height: 320px;
	}

	.banner-image {
		width: 100%;
	}

	.allstyle {
		display: flex;
		flex-direction: row;
		height: 24px;
		font-size: 16px;
		font-family: "PingFang SC";
		color: #000;
		line-height: 20px;
		margin-top: 15px;
	}

	.allinputstyle {
		width: 230px;
		height: 24px;
		font-size: 14px;
		padding-left: 10px;
		margin-left: 20px;
		background: #ffffff;
		border: 1px solid rgba(0, 0, 0, 0.10);
		border-radius: 5px;
	}

	.buttonstyle {
		width: 180px;
		height: 40px;
		line-height: 40px;
		bottom: 0;
		background: #3d9c36;
		color: #fff;
		border-radius: 3px;
		position: absolute;
		transform: translate(50%);
	}

	.chooseother-style::after {
		content: url('../../static/images/Icons_Outlined_back.png');
		width: 20px;
		height:18px;
		right: 5px;
		position: absolute;
		border: solid 1px #939393;
		transform: translateY(12%);
		opacity: .5;
	}

	.housetype-inputstyle::after {
		content: "(㎡)";
		right: 20px;
		position: absolute;
		transform: translateY(-110%);
		opacity: .5;
	}
</style>
